import 'package:flutter/material.dart';
import './icon.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(title: const Text('这是按钮页面')),
      body: const Column(
        children: [MyText()],
      ),
    ),
  ));
}

class MyText extends StatelessWidget {
  const MyText({super.key});

  @override
  Widget build(BuildContext context) {
    return const Column(
      children: [
        SizedBox(height: 20),
        Icon(
          Icons.home,
          size: 40,
        ),
        Icon(Icons.search),
        Icon(
          Icons.category,
          color: Colors.red,
        ),
        Icon(Icons.card_travel),
        SizedBox(height: 20),
        Icon(MyIcon.book, size: 40, color: Colors.amber),
        Icon(MyIcon.cart, size: 90),
        Icon(MyIcon.cartAll, size: 90),
      ],
    );
  }
}
